<h1>Editing thought</h1>

<% form_for(@thought) do |f| %>
  <%= f.error_messages %>
  <p>
    <%= f.label :body %><br />
    <%= f.text_area :body %>
  </p>
  <p>
    <%= f.submit 'Update' %>
  </p>
<% end %>

<%= link_to 'Show', @thought %> |
<%= link_to 'Back', thoughts_path %>
